package com.example.kevin.controller;

import com.example.kevin.entity.TaskData;
import com.example.kevin.resp.Resp;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author: Kevin
 * Date: 2023/5/1 20:17
 */
@Slf4j
@RestController
public class TestValidationController {
    @PostMapping("validation")
    public Resp testValidation(@Validated @RequestBody TaskData taskData) {
        return Resp.succ("11111");
    }
}
